package message.types.unique;

import java.io.IOException;

import message.Message;
import message.visitor.MessageVisitor;
import network.e2e.FrameWriter;
import stalker.Stalker;

/**
 * Represents a message with no content
 */

public class EmptyMessage extends Message {

  public EmptyMessage() {
    super(Stalker.GUEST_STALKER, Stalker.GUEST_STALKER);
  }
  
  @Override
  public <T> T accept(MessageVisitor<T> visitor) {
    return visitor.visit(this);
  }

  @Override
  public void send(FrameWriter writer) throws IOException {
    return;
  }

  @Override
  public String toString() {
    return "EMPTY MESSAGE";
  }

  @Override
  public boolean equals(Object obj) {
    return (obj instanceof EmptyMessage);
  }

}
